package com.lipeng.bean;

import java.util.Date;

public class Comment {
    private Integer comid;

    private Integer uid;

    private Integer pid;

    private String comcontent;

    private String comtime;

    private User user;

    private Photo photo;

    public Comment(){
    }

    public Comment(Integer comid, Integer uid, Integer pid, String comcontent, String comtime, User user, Photo photo) {
        this.comid = comid;
        this.uid = uid;
        this.pid = pid;
        this.comcontent = comcontent;
        this.comtime = comtime;
        this.user = user;
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "comid=" + comid +
                ", uid=" + uid +
                ", pid=" + pid +
                ", comcontent='" + comcontent + '\'' +
                ", comtime='" + comtime + '\'' +
                ", user=" + user +
                ", photo=" + photo +
                '}';
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Photo getPhoto() {
        return photo;
    }

    public void setPhoto(Photo photo) {
        this.photo = photo;
    }

    public Integer getComid() {
        return comid;
    }

    public void setComid(Integer comid) {
        this.comid = comid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getComcontent() {
        return comcontent;
    }

    public void setComcontent(String comcontent) {
        this.comcontent = comcontent == null ? null : comcontent.trim();
    }

    public String getComtime() {
        return comtime;
    }

    public void setComtime(String comtime) {
        this.comtime = comtime;
    }
}